$("#btn").click(function () {
    var tname = $("#tname").val();
    var sex = $("#sex").val();
    var age = $("#age").val();
    var telephone = $("#telephone").val();
    var email = $("#email").val();
    $.ajax({
        url:"/RuanJianKeShe/addTeacherInfo",
        type:"post",
        data:{
            "msg":"addTeacherInfo",
            "tname":tname,
            "sex":sex,
            "age": age,
            "telephone":telephone,
            "email":email
        },
        dataType:"json",
        success:function(success){
            alert(success)
        },
        error:function(){
            alert("fail");
        }
    })
    window.history.back();
})
